function calculateSum(...numbers) {
    let total = 0;
    for (let number of numbers) {
      total += number;
    }
    return total;
  }
   
  console.log(calculateSum(1, 2, 3));
  console.log(calculateSum(4, 5, 6, 7)); 